import { UserInfo } from "./../user/type";
/**请求参数 */

// 任务大厅参数
export interface TaskDto {
  name?: string;
  type?: string;
  minPlanB?: number;
  maxPlanB?: number;
  pageNum: number;
  pageSize: number;
}

// 任务信息
export interface TaskInfo {
  id: number;
  pid: number;
  name: string;
  type?: number;
  typeName?: string;
  requirements: string;
  salary: number;
  score: number;
  difficulty: number;
  author: number;
  worker: number;
  role: number;
  audit: number;
  finish: boolean;
  fileIn: string;
  fileOut: string;
  avatar: string;
  deadtime: string;
  createtime: string;
  updatetime: string;
  img: string;
}

// 分页任务列表
export interface TaskAll {
  countId: number;
  current: number;
  hitCount: boolean;
  maxLimit: null;
  optimizeCountSql: boolean;
  orders: [];
  pages: number;
  records: TaskInfo[];
  searchCount: boolean;
  size: number;
  total: number;
}

// 任务信息(含发布者)
export interface TaskUserInfo {
  task: TaskInfo;
  author: UserInfo;
  taskNum: number;
  users: UserInfo[];
}
